package com.bl.student.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by yujingyi on 2018/5/5.
 */
@Entity
@Data
@Table(name = "nobook_school")
@ApiModel(value = "SchoolEntity", description = "学校")
@DynamicInsert
@DynamicUpdate
public class SchoolEntity {
    @Id
    @ApiModelProperty(value = "id")
    private int id;

    @ApiModelProperty(value = "城市id")
    @Column(name = "city_id")
    private int cityId;

    @ApiModelProperty(value = "学校名")
    private String schoolname;

    @ApiModelProperty(value = "学校类型")
    @Column(name = "school_type")
    private int schoolType;

    @ApiModelProperty(value = "拼音首字母")
    @Column(name = "first_py")
    private String firstPy;

    @ApiModelProperty(value = "拼音")
    private String py;

    @ApiModelProperty(value = "县市ID")
    @Column(name = "county_id")
    private int countyId;

    @ApiModelProperty(value = "省份ID")
    @Column(name = "province_id")
    private int provinceId;

    @ApiModelProperty(value = "状态")
    private int status;

    @ApiModelProperty(value = "sctype")
    private int sctype;

    @ApiModelProperty(value = "用户定义")
    @Column(name = "user_define")
    private int userDefine;

}
